<template>
  <a-spin :spinning="confirmLoading">
    <j-form-container :disabled="formDisabled" >
      <a-form-model ref="form" :model="batchChangeStudentsNewInfo" :rules="validatorRules" slot="detail">
        <a-row >
          <a-divider>批量修改（不选不修改，指定选项中的内容才会被修改成统一值）</a-divider>
        </a-row>
        <a-row>
          <a-col :span='13'>
            <a-form-model-item label='新部门' prop='batchChangeStudentsNewInfo.sysOrgCode'>
              <j-select-depart v-model='batchChangeStudentsNewInfo.sysOrgCode' :trigger-change='true'
                               customReturnField='orgCode' :multi='true'></j-select-depart>
            </a-form-model-item>
          </a-col>
          <a-col :span='2'></a-col>
          <a-col :span='9'>
            <!--                            //更新班级、学年、学期、班级：更新关系表的时候会把历史数据更新掉，是不正确的。需要精确更新-->
            <!--                            //知道旧的学期和学年，然后根据旧的学期学年精确查到想要更改的数据，然后进行更改-->
            <a-form-model-item label="新班级"  prop="batchChangeStudentsNewInfo.gradeId">
              <j-dict-select-tag @change="changeStudentNewGradeId" type="list" v-model="batchChangeStudentsNewInfo.gradeId"
                                 dictCode='cou_grade,grade_name,id,tenant_id  is not null order by  grade_order'
                                 placeholder="年级" style="width: 40%"/>
              <j-dict-select-tag type="list" v-model="batchChangeStudentsNewInfo.classId"
                                 :dictCode="this.queryParamSelect.studentNewClassIdSelect"
                                 placeholder="班级" style="width: 60%"/>
            </a-form-model-item>

          </a-col>
        </a-row>

        <a-row>

        </a-row>

        <a-row>

          <a-col :span='24'>
            <a-form-model-item label='新届级' prop='batchChangeStudentsNewInfo.studentEnrollmentYear'>
              <s-dict-select-tag v-model='batchChangeStudentsNewInfo.studentEnrollmentYear' placeholder='请选择届级'
                                 dictCode='cou_gradesession_year,gradesession_year_name,gradesession_year_code,iz_open=1 and del_flag=0 order by  gradesession_year_code' />
            </a-form-model-item>
          </a-col>

          </a-row>

          <a-row>
            <a-col :span='24'>
              <a-form-model-item label='学生状态' prop='batchChangeStudentsNewInfo.studentStatus'>
                <s-dict-select-tag v-model='batchChangeStudentsNewInfo.studentStatus' placeholder='请选择状态'
                                   dictCode='student_status' />
              </a-form-model-item>
            </a-col>
          </a-row>
        <a-row>
          <a-col :span="12">
            <a-form-model-item label="学生性别" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentGender">
              <s-dict-select-tag v-model='batchChangeStudentsNewInfo.studentGender' placeholder='请选择学生性别'
                                 dictCode='sex' />
            </a-form-model-item>
          </a-col>

          <a-col :span="12">
            <a-form-model-item label="民族" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentNation">
              <!--              <a-input-number v-model="batchChangeStudentsNewInfo.studentNation" placeholder="请输入民族" style="width: 100%" />-->
              <j-dict-select-tag type="list" v-model="batchChangeStudentsNewInfo.studentNation" dictCode="common_nation"
                                 placeholder="请输入民族" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="生源地" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentPlaceOrigin">
              <a-input v-model="batchChangeStudentsNewInfo.studentPlaceOrigin" placeholder="请输入生源地"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="来源学校" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentFromSchool">
              <a-input v-model="batchChangeStudentsNewInfo.studentFromSchool" placeholder="请输入来源学校"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="家庭状态" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentFamilyStatus">
              <!--              <a-input-number v-model="batchChangeStudentsNewInfo.studentFamilyStatus" placeholder="请输入家庭状态" style="width: 100%" />-->
              <j-dict-select-tag type="list" v-model="batchChangeStudentsNewInfo.studentFamilyStatus"
                                 dictCode="student_family_status" placeholder="请选择家庭状态" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="是否贫困生" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentPoor">
              <!--              <a-input-number v-model="batchChangeStudentsNewInfo.studentPoor" placeholder="请输入是否贫困生" style="width: 100%" />-->
              <j-dict-select-tag type="list" v-model="batchChangeStudentsNewInfo.studentPoor" dictCode="student_poor"
                                 placeholder="请选择是否贫困生" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="贫困级别" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentPoorLevel">
              <!--              <a-input-number v-model="batchChangeStudentsNewInfo.studentPoorLevel" placeholder="请输入贫困级别" style="width: 100%" />-->
              <j-dict-select-tag type="list" v-model="batchChangeStudentsNewInfo.studentPoorLevel" dictCode="student_poor_level"
                                 placeholder="请输入贫困级别" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="是否借读生" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentLoan">
              <!--              <a-input-number v-model="batchChangeStudentsNewInfo.studentLoan" placeholder="请输入是否借读生" style="width: 100%" />-->
              <j-dict-select-tag type="list" v-model="batchChangeStudentsNewInfo.studentLoan" dictCode="student_load"
                                 placeholder="请选择是否借读生" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="毕业去向" :labelCol="labelCol" :wrapperCol="wrapperCol"
                               prop="studentGraduationDestination">
              <a-input v-model="batchChangeStudentsNewInfo.studentGraduationDestination" placeholder="请输入毕业去向"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="是否启用" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentIzOpen">
              <j-dict-select-tag v-model="batchChangeStudentsNewInfo.studentIzOpen" dict-code="iz_open"></j-dict-select-tag>
            </a-form-model-item>
          </a-col>

          <a-col :span="12">
            <a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentRemark">
              <a-input v-model="batchChangeStudentsNewInfo.studentRemark" placeholder="备注"></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row >
          <a-divider>以下内容请谨慎修改（本次批量修改会把选中的学生信息修改成一样的数据）</a-divider>
        </a-row>
        <a-row >

<!--          <a-col :span="12">-->
<!--            <a-form-model-item label="序号" @change="changeStudentOrder" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentOrder">-->
<!--              <a-input-number v-model="batchChangeStudentsNewInfo.studentOrder" placeholder="排序号决定显示顺序" style="width: 100%" />-->
<!--            </a-form-model-item>-->
<!--          </a-col>-->

<!--          <a-col :span="12">-->
<!--            <a-form-model-item label="学生学号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentNo">-->
<!--              <a-input v-model="batchChangeStudentsNewInfo.studentNo" placeholder="请输入学生学号"></a-input>-->
<!--            </a-form-model-item>-->
<!--          </a-col>-->
<!--          <a-col :span="12">-->
<!--            <a-form-model-item label="学生姓名" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentName">-->
<!--              <a-input v-model="batchChangeStudentsNewInfo.studentName" placeholder="请输入学生姓名"></a-input>-->
<!--            </a-form-model-item>-->
<!--          </a-col>-->
          <a-col :span="12">
            <a-form-model-item label="身份证号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentIdCardNo">
              <a-input v-model="batchChangeStudentsNewInfo.studentIdCardNo" placeholder="请输入身份证号"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="卡号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentCardNo">
              <a-input v-model="batchChangeStudentsNewInfo.studentCardNo" placeholder="请输入卡号"></a-input>
            </a-form-model-item>
          </a-col>

          <a-col :span="12">
            <a-form-model-item label="出生年月" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentDateBirth">
              <j-date placeholder="请选择出生年月" v-model="batchChangeStudentsNewInfo.studentDateBirth" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="联系电话" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentTelephone">
              <a-input v-model="batchChangeStudentsNewInfo.studentTelephone" placeholder="请输入联系电话"></a-input>
            </a-form-model-item>
          </a-col>
<!--          <a-col :span="12">-->
<!--            <a-form-model-item label="入学年份" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentEnrollmentYear">-->
<!--              <a-input v-model="batchChangeStudentsNewInfo.StudentEnrollmentYear" placeholder="请输入入学年份"></a-input>-->
<!--            </a-form-model-item>-->
<!--          </a-col>-->
          <a-col :span="12">
            <a-form-model-item label="学生微信" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentWechat">
              <a-input v-model="batchChangeStudentsNewInfo.studentWechat" placeholder="请输入学生微信"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="学生邮箱" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentEmail">
              <a-input v-model="batchChangeStudentsNewInfo.studentEmail" placeholder="请输入学生邮箱"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="学生QQ" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentQq">
              <a-input v-model="batchChangeStudentsNewInfo.studentQq" placeholder="请输入学生QQ"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="身高" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentHeight">
              <a-input-number v-model="batchChangeStudentsNewInfo.studentHeight" placeholder="请输入身高" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="体重" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentWeight">
              <a-input-number v-model="batchChangeStudentsNewInfo.studentWeight" placeholder="请输入体重" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="视力" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentVision">
              <a-input-number v-model="batchChangeStudentsNewInfo.studentVision" placeholder="请输入视力" style="width: 100%" />
            </a-form-model-item>
          </a-col>

          <a-col :span="12">
            <a-form-model-item label="户籍地址" :labelCol="labelCol" :wrapperCol="wrapperCol"
                               prop="studentHouseholdRegister">
              <a-input v-model="batchChangeStudentsNewInfo.studentHouseholdRegister" placeholder="请输入户籍地址"></a-input>
            </a-form-model-item>
          </a-col>

          <a-col :span="12">
            <a-form-model-item label="现住地址" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentCurrentAddress">
              <a-input v-model="batchChangeStudentsNewInfo.studentCurrentAddress" placeholder="请输入现住地址"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="学生类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentTtype">
              <!--              <a-input-number v-model="batchChangeStudentsNewInfo.studentTtype" placeholder="请输入学生类型" style="width: 100%" />-->
              <j-dict-select-tag type="list" v-model="batchChangeStudentsNewInfo.studentTtype" dictCode="student_ttype"
                                 placeholder="请输入学生类型" />
            </a-form-model-item>
          </a-col>

          <a-col :span="12">
            <a-form-model-item label="特殊标识" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="studentSpecialFlag">
              <a-input-number v-model="batchChangeStudentsNewInfo.studentSpecialFlag" placeholder="请输入特殊标识" style="width: 100%" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="紧急联系人" :labelCol="labelCol" :wrapperCol="wrapperCol"
                               prop="studentEmergencyContact">
              <a-input v-model="batchChangeStudentsNewInfo.studentEmergencyContact" placeholder="请输入紧急联系人"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="紧急人联系电话" :labelCol="labelCol" :wrapperCol="wrapperCol"
                               prop="studentEmergencyTelephone">
              <a-input v-model="batchChangeStudentsNewInfo.studentEmergencyTelephone" placeholder="请输入紧急人联系电话"></a-input>
            </a-form-model-item>
          </a-col>




        </a-row>
      </a-form-model>
    </j-form-container>
  </a-spin>
</template>

<script>

import { httpAction, getAction, postAction } from '@/api/manage'
// import { deepClone, validateDuplicateValue ,cloneObject} from '@/utils/util'
import { filterObj,cloneObject,deepClone } from '@/utils/util';
import Vue from 'vue'
import { TENANT_ID } from '@/store/mutation-types'
import { getAllClass, getClassById } from '@api/commonAPI'
import { addZero } from '../../../../components/_util/StringUtil'//@components/_util/StringUtil'

export default {
  name: 'StuStudentBatchUpdateForm',
  components: {},
  props: {
    //表单禁用
    disabled: {
      type: Boolean,
      default: false,
      required: false
    }
    ,
    //选中对象的id列表
    ids: {
      type: Array,
      default: [],
      required: false
    }

  },
  data() {
    return {
      queryParamSelect:{studentNewClassIdSelect: 'cou_class cc,cc.class_name,cc.id ,cc.class_iz_delete =0 and cc.class_iz_open  =1 order by cc.grade_code !! cc.class_order !! cc.class_number'},
      batchChangeStudentsNewInfo: {
        ids: [],
        sysOrgCode: null,
        gradeId: null,
        classId: null,
        studentEnrollmentYear: null,
        schoolYearId: null,
        semesterId: null,
        studentStatus: null,

        studentIdCardNo: null,
        studentCardNo: null,
        studentGender: null,
        studentDateBirth: null,
        studentNation: null,
        studentTelephone: null,
        StudentEnrollmentYear: null,
        studentWechat: null,
        studentEmail: null,
        studentQq: null,
        studentHeight: null,
        studentWeight: null,
        studentVision: null,
        studentFromSchool: null,
        studentGraduationDestination: null,
        studentHouseholdRegister: null,
        studentPlaceOrigin: null,
        studentCurrentAddress: null,
        studentTtype: null,
        studentFamilyStatus: null,
        studentPoor: null,
        studentPoorLevel: null,
        studentLoan: null,
        studentSpecialFlag: null,
        studentEmergencyContact: null,
        studentEmergencyTelephone: null,
        studentIzOpen: null,
        studentRemark: null,
        // targetNewClassId: this.modelDefault.classId,
        // studentStatus: 1,
        // studentIzOpen: 1,
        // studentLoan: 0,
        // studentPoor: 0,
        // studentFamilyStatus: 1,
        // studentTtype: 1,
        // studentOrder: 1,
        // classNumber: null,
        // studentEnrollmentYear: null

      },
      labelCol: {
        xs: { span: 12 },
        sm: { span: 5 }
      },
      wrapperCol: {
        xs: { span: 12 },
        sm: { span: 16 }
      },
      confirmLoading: false,
      validatorRules: {

        // tenantId: [
        //   { required: true, message: '请输入学校编码!' }
        // ]
      },
      url: {
        batchChangeStudentsUrl: '/student/stuStudent/batchChangeStudentsNewInfo'
      }
    }
  },
  computed: {
    formDisabled() {
      return this.disabled
    }
  },
  created() {
    //备份model原始值
    this.modelDefault = JSON.parse(JSON.stringify(this.batchChangeStudentsNewInfo))
    // this.batchChangeStudentsNewInfo.targetNewClassId = deepClone( this.modelDefault.classId ) //深拷贝，改变不影响原来的值
  },
  methods: {
    batchEdit(ids) {
      //this.model = Object.assign({}, record)
      this.ids = ids
      this.visible = true
    },
    submitForm() {
      const that = this
      // 触发表单验证
      this.$refs.form.validate(valid => {
        if (valid) {
          that.confirmLoading = true
          let httpurl = that.url.batchChangeStudentsUrl
          let method = 'post'
          that.batchChangeStudentsNewInfo.ids = this.ids ;
          httpAction(httpurl, that.batchChangeStudentsNewInfo, method).then((res) => {
            if (res.success) {
              that.$message.success(res.message)
              that.$emit('ok')
            } else {
              that.$message.warning(res.message)
            }
          }).finally(() => {
            that.confirmLoading = false
          })
        }

      })
    },
    //选项变更：更新年级联动班级
    changeStudentNewGradeId() {
      if (this.batchChangeStudentsNewInfo.gradeId) { //判断不为空

        this.queryParamSelect.studentNewClassIdSelect = 'cou_class,class_name,id,class_iz_open  =1 and class_iz_delete  = 0 and grade_code=\'' + this.batchChangeStudentsNewInfo.gradeId + '\' order by  class_order'
      }
    }

    //更改年级
    // changeGradeId() {
    //   if (this.batchChangeStudentsNewInfo.gradeId != null && this.batchChangeStudentsNewInfo.gradeId != '') {
    //     this.queryParamSelect.studentNewClassIdSelect = 'cou_class cc,cc.class_name,cc.id,cc.grade_code =\'' + this.batchChangeStudentsNewInfo.gradeId + '\' and cc.class_iz_delete =0 and cc.class_iz_open  =1 order by cc.grade_code !! cc.class_order !! cc.class_number'
    //   }
    // },
    // async getClassNumber(classId) {
    //   let res = await getClassById(classId)
    //
    //   let classGradesessionYear = res.result.classGradesessionYear
    //   let classNumber = res.result.classNumber
    //   this.batchChangeStudentsNewInfo.classNumber = cloneObject(classNumber)
    //   this.batchChangeStudentsNewInfo.studentEnrollmentYear = cloneObject(classGradesessionYear)
    //   return classNumber
    // },
    // async getclassGradesessionYear(classId) {
    //   let res = await getClassById(classId)
    //   let classGradesessionYear = res.result.classGradesessionYear
    //   let classNumber = res.result.classNumber
    //   this.batchChangeStudentsNewInfo.classNumber = cloneObject(classNumber)
    //   this.batchChangeStudentsNewInfo.studentEnrollmentYear = cloneObject(classGradesessionYear)
    //   return classGradesessionYear
    // },
    // //创建学生学号
    // createStudentNo(tenantid,classGradesessionYear,classNumber,studentOrder){
    //   this.batchChangeStudentsNewInfo.studentNo = null
    //   let tenantid2 =  addZero(tenantid,4)
    //   let classGradesessionYear2 =  addZero(classGradesessionYear,4)
    //   let classNumber2 =  addZero(classNumber,2)
    //   let studentNo2 =   addZero(this.batchChangeStudentsNewInfo.studentOrder,2)
    //   let studentNo3 = cloneObject(''+tenantid2 + classGradesessionYear2 + classNumber2  + studentNo2)
    //   this.batchChangeStudentsNewInfo.studentNo = cloneObject(studentNo3)
    //   return studentNo3;
    // },
    // //初始化班级信息-->更改届级、学号
    // async changeTargetNewClassId(){
    //   let tenantid = Vue.ls.get(TENANT_ID);
    //   // this.batchChangeStudentsNewInfo.studentEnrollmentYear = null
    //   let classGradesessionYear = await  this.getclassGradesessionYear(this.batchChangeStudentsNewInfo.targetNewClassId)
    //   this.batchChangeStudentsNewInfo.studentEnrollmentYear = cloneObject(classGradesessionYear);
    //
    //   let classNumber = await  this.getClassNumber(this.batchChangeStudentsNewInfo.targetNewClassId);//通过班级id查找对应的班级号
    //   classNumber =  addZero(classNumber,2)
    //
    //   let studentNo =   addZero(this.batchChangeStudentsNewInfo.studentOrder,2)
    //   this.batchChangeStudentsNewInfo.studentNo = this.createStudentNo(tenantid , classGradesessionYear , classNumber  , studentNo);//''+tenantid + classGradesessionYear + classNumber  + studentNo
    //
    //   // if(!this.batchChangeStudentsNewInfo.studentNo || this.batchChangeStudentsNewInfo.studentNo.indexOf(classNumber) == -1){
    //   //   this.batchChangeStudentsNewInfo.studentNo =  tenantid+this.batchChangeStudentsNewInfo.studentEnrollmentYear+classNumber+this.batchChangeStudentsNewInfo.studentOrder;
    //   // }
    // },
    //  changeStudentEnrollmentYear(){
    //   let tenantid = Vue.ls.get(TENANT_ID);
    //   let classGradesessionYear = cloneObject(this.batchChangeStudentsNewInfo.studentEnrollmentYear);
    //
    //   let classNumber = cloneObject(this.batchChangeStudentsNewInfo.classNumber);//await  this.getClassNumber(this.batchChangeStudentsNewInfo.classId);//通过班级id查找对应的班级号
    //   classNumber =  addZero(classNumber,2)
    //
    //   let studentNo =   addZero(this.batchChangeStudentsNewInfo.studentOrder,2)
    //
    //   this.batchChangeStudentsNewInfo.studentNo =  this.createStudentNo(tenantid , classGradesessionYear , classNumber  , studentNo)
    // },
    //  changeStudentOrder(){
    //   let tenantid = Vue.ls.get(TENANT_ID);
    //
    //   let classGradesessionYear = this.batchChangeStudentsNewInfo.studentEnrollmentYear;
    //
    //   let classNumber = this.batchChangeStudentsNewInfo.classNumber;//await  this.getClassNumber(this.batchChangeStudentsNewInfo.classId);//通过班级id查找对应的班级号
    //   classNumber =  addZero(classNumber,2)
    //
    //   let studentNo =   addZero(this.batchChangeStudentsNewInfo.studentOrder,2)
    //   this.batchChangeStudentsNewInfo.studentNo =  this.createStudentNo(tenantid , classGradesessionYear , classNumber  , studentNo)
    // }
    //批量处理函数

    // batchChangeStudents(){
    //
    //   if (this.selectionRows.length === 0) {
    //     alert('请先选择数据')
    //   } else {
    //     //填充新的几项基本信息（试卷编码，试卷名称，所属考试，试卷类型）
    //     console.log(this.selectionRows)
    //     var ids = ''
    //     for (var a = 0; a < this.selectedRowKeys.length; a++) {
    //       ids += this.selectedRowKeys[a] + ','
    //     }
    //     // let addUserParm = { ids: ids,stupassword: this.studentAddUsers.stupassword,  }
    //     this.batchChangeStudentsNewInfo.ids = ids;
    //
    //     postAction(this.url.batchChangeStudentsUrl,  this.batchChangeStudentsNewInfo).then(res => {
    //       if (res.code === 200) {
    //         this.$message.success('调整部门信息成功')
    //       } else {
    //         this.$message.error('调整部门信息出错，请联系管理员')
    //       }
    //     })
    //   }
    //   this.batchChangeStudentsVisible=false
    // },
    // batchChangeStudentsCancle() {
    //   this.batchChangeStudentsVisible=false
    // }
  }
}
</script>